package com.wuzu.ecommerce.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 促销活动商品表(ActivityGood)实体类
 *
 * @author jsm
 * @since 2023-03-26 17:23:16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_activity_good")
public class ActivityGood implements Serializable {
    private static final long serialVersionUID = 745533241949699634L;
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 促销活动id
     */
    @TableField(value = "aid")
    private Integer aid;

    /**
     * 商品id
     */
    @TableField(value = "gid")
    private Integer gid;

    /**
     * 库存id;为了得到原价格
     */
    @TableField(value = "sid")
    private Integer sid;

    /**
     * 商品拼团价格折扣;小数形式，方便计算，默认为1
     */
    @TableField(value = "discount")
    private Double discount;

    /**
     * 浏览量
     */
    @TableField(value = "looks")
    private Integer looks;

    /**创建时间*/
    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
}
